<?php
class Audiencelist extends AppModel {
	var $name = 'Audiencelist';
	
	var $hasAndBelongsToMany = array('User' =>
	            array(
	            'className'              => 'User',
	            'joinTable'              => 'audiencelists_users',
	            'foreignKey'             => 'audiencelist_id',
                'associationForeignKey'  => 'user_id',
                'unique'                 => true,
                'conditions'             => '',
                'fields'                 => '',
                'order'                  => '',
                'limit'                  => '',
                'offset'                 => '',
                'finderQuery'            => '',
                'deleteQuery'            => '',
                'insertQuery'            => ''
            ));

	var $validate = array(
		'name' => array(
			'rule' => 'notEmpty',
			'message' => 'Please enter a name for this Audience List'
		),
	);			
			
}
?>